package com.my.test.webServiceTest;


import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;

@WebService(name="SayHello", targetNamespace="http://sayHello.com", serviceName="SayHello")   
@SOAPBinding(style=SOAPBinding.Style.RPC)  
public class SayHello{
	/**
	 * 
	 * @param userName 输入参数 userName
	 * @return
	 */
	@WebMethod(operationName="getSay",action="getSay",exclude=false)   
    @WebResult(name="String")//自定义该方法返回值在WSDL中相关的描述 
	public String getSay(@WebParam(name="userName")String userName) {
		return "你好啊"+userName;
	}
}
